package com.itheima.table03;

import com.itheima.MyUntils.MyUntil;
import com.itheima.bean.Student;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class Test03 {
    @Test
    public void selectManyManyAll(){
        SqlSession sqlSession = MyUntil.getSession();
        ManyToMany manyToMany = sqlSession.getMapper(ManyToMany.class);
        List<Student> lists = manyToMany.selectManyManyAll();
        for (Student list:lists) {
            System.out.println(list);
        }
    }
}
